package com.aigou.admin.service;

import com.aigou.admin.entity.PageEntity;
import com.aigou.admin.entity.Product;

import java.util.List;

/**
 * @Author: Hor
 * @Date: 2024/11/29 15:33
 * @Version: 1.0
 */
public interface ProductService {
    List<Product> findAll();

    Product findById(String id);

    List<Product> findByName(String product_name);

    Boolean save(Product product);

    Boolean update(Product product);

    Boolean remove(String id);

    PageEntity<Product> findProductByPage(Integer currentPage, Integer pageSize);
}
